package com.fs.procure.service.impl;

import java.util.List;

import com.fs.procure.pojo.AddProduct;
import com.fs.procure.vo.AddProductVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fs.procure.mapper.AddProductMapper;
import com.fs.procure.service.IAddProductService;

/**
 * 进货商品信息Service业务层处理
 * 
 * @author lan
 * @date 2024-08-15
 */
@Service
public class AddProductServiceImpl implements IAddProductService
{
    @Autowired
    private AddProductMapper addProductMapper;


    /**
     * 查询进货商品信息列表
     * 
     * @param addProduct 进货商品信息
     * @return 进货商品信息
     */
    @Override
    public List<AddProduct> selectProductList(AddProduct addProduct)
    {
        return addProductMapper.selectProductList(addProduct);
    }


    @Override
    public List<AddProductVo> getAllAddvariant(int productId) {
        List<AddProductVo> allAddvariants = addProductMapper.getAllAddvariants(productId);
        return allAddvariants;
    }


}
